function initPage() {
    document.getElementById("ACCOUNT").focus();
    Validator.validate(document.getElementById(("loginForm")), 3);
}
function checkLogin() {
    if (!Validator.validate(document.getElementById(("loginForm")), 4))
        return false;
    var account = document.getElementById("ACCOUNT").value;
    var user_pwd = document.getElementById("USER_PWD").value;
    var json = {
        url:contextPath + "/server/sys/doLogin.do",
        msg:"登录中.....",
        params:{
            "ACCOUNT":account,
            "USER_PWD":user_pwd
        },
        callback:[checkLoginCallBack]
    };
    AjaxTools.ajax(json);
}
function checkLoginCallBack(data) {
    if (data.code == "00") {  //登录成功 跳转
        var sTarget = "mainframe.jsp";
        //window.location.href = sTarget;
        var sw = screen.width + 9;
        var sh = screen.height + 9;
        var w = 650;
        var h = 350;
        var l = -10;
        var t = -10;
        var win = window.open(sTarget, "_blank", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=" + w + ",height=" + h + ",left=" + l + ",top=" + t);
        if (win != null)
        {
            //            window.opener = null;
            //            window.close();
            //ie7有时提示是否关闭 此代码屏蔽了提示   ie678通用
            window.opener = null
            window.open("", "_self")
            window.close();
        }
        else
        {
            msg.style.display = "block";
        }
    } else {
        alert(data.data);
    }
}